<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>

<c:forEach items="${yuntaiList}" var="yuntai" varStatus="statu">
	${yuntai.name}
	<a href="updateYuntai.action?yuntai.id=${yuntai.id}">修改</a>  
	<a href="deleteYuntai.action?yuntai.id=${yuntai.id}" onclick="return confirm('您是否删除')">删除</a><br />
</c:forEach>

<s:form action="addYuntai" method="POST" >
	<s:textfield name="yuntai.name" label="产品名称" />
	<s:textfield name="yuntai.model" label="产品型号" />
	<s:textfield name="yuntai.inputVoltage" label="云台输入电压" />
	<s:textfield name="yuntai.inputPower" label="云台输入功率" />
	<s:textfield name="yuntai.infraedLightInputPower" label="红外灯输入功率" />
	<s:textfield name="yuntai.insideDecode" label="内置解码器" />
	<s:textfield name="yuntai.cp" label="通信协议" />
	<s:textfield name="yuntai.circumvolveAngle" label="旋转角度" />
	<s:textfield name="yuntai.circumvolveSpeed" label="旋转速度" />
	<s:textfield name="yuntai.circumvolveConfine" label="旋转限位" />
	<s:textfield name="yuntai.allowLimitVidiconAndSize" label="允许最大摄像机和镜头尺寸" />
	<s:textfield name="yuntai.temperature" label="工作温度" />
	<s:textfield name="yuntai.material" label="外罩材料" />
	<s:textfield name="yuntai.color" label="下罩颜色" />
	<s:textfield name="yuntai.limitLoad" label="最大负载" />
	<s:textfield name="yuntai.weight" label="重量" />
	<s:file name="yuntai.photo" label="产品图片" />
	
	<input type="hidden" name="yuntai.id" value="${yuntai.id}"/>
	
	<s:submit name="增加" label="增加" />
</s:form>

</body>
</html>